package com.toprs.base.query

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.NotNull

class UserQuery(
        @Schema(description = "手机号")
        var phone: String? = null,

        @Schema(description = "姓名")
        var realname: String? = null,

        @Schema(description = "部门")
        @NotEmpty(message = "部门Id不能为空")
        var deptId: Int? = null,

        pageNo: Int, pageSize: Int = 15

) : BaseQuery(pageNo, pageSize)